<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%project_category_relation}}".
 *
 * @property string $id ID主键
 * @property string $project_id 项目id
 * @property string $cate_id 分类id
 * @property int $created_time 资讯创建时间
 * @property int $updated_time 资讯更新时间
 */
class ProjectCategoryRelation extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%project_category_relation}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['project_id', 'cate_id', 'created_time', 'updated_time'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID主键'),
            'project_id' => Yii::t('app', '项目id'),
            'cate_id' => Yii::t('app', '分类id'),
            'created_time' => Yii::t('app', '资讯创建时间'),
            'updated_time' => Yii::t('app', '资讯更新时间'),
        ];
    }
}
